class Person:
    def __init__(self, name):
        self.name = name

    def sayhi(self):
        print('Hello!', self.name)


p = Person('单军鹏')
print(p)
p.sayhi()
